#include <opencv2\opencv.hpp>
using namespace cv;
int main()
{
	Mat img = imread("image.jpg");
	Mat res1, res2;
	// 指定倍数
	resize(img,res1, Size(),0.5,0.5,INTER_AREA);
	// 指定大小
	int height = img.rows* 1.5;
	int width = img.cols* 1.5;
	resize(img, res2, Size(width,height), 0, 0, INTER_CUBIC);
	imshow("res1", res1);
	imshow("res2", res2);
	waitKey(0);
	return 0;
}